<table class="report">
<?php


if (isset($PreparedTemplates['report_form']['empty'])) {
	echo $PreparedTemplates['report_form']['empty'];
}
else {

?>

<tr><td>
	Date
	</td>
	<td>
	Username
	</td>
	<td>
	Groupname
	</td>
	<td>
	Calling_Station_Id
	</td>
	<td>
	Called_Station_Id
	</td>
	<td>
	Acct_Status_Type
	</td>
	<td>
	Acct_Session_Time
	</td>
	<td>
	Service_Type
	</td>
	<td>
	NAS_Identifier
	</td>
	<td>
	NAS_Port_Id
	</td>
	<td>
	NAS_Port
	</td>
	<td>
	NAS_port_type
	</td>
	<td>
	Acct_Session_Id
	</td>
	<td>
	Acct_Authentic
	</td>
	<td>
	Acct_Input_Packets
	</td>
	<td>
	Acct_Output_Packets
	</td>
	<td>
	Acct_Input_Octets
	</td>
	<td>
	Acct_Output_Octets
	</td>
	<td>
	Acct_Terminate_Cause
	</td></tr>
 	 	 	
<?php 
foreach ($PreparedTemplates['report_form'] as $report_row)
{
?> 

  <tr>
	<td><?php echo $report_row['date']?></td>
	<td><?php echo $report_row['username']?></td>
	<td><?php echo $report_row['groupname']?></td>
	<td><?php echo $report_row['calling_station_id']?></td>
	<td><?php echo $report_row['called_station_id']?></td>
	<td><?php echo $report_row['acct_status_type']?></td>
	<td><?php echo $report_row['acct_session_time']?></td>
	<td><?php echo $report_row['service_type']?></td>
	<td><?php echo $report_row['nas_identifier']?></td>
	<td><?php echo $report_row['nas_port_id']?></td>
	<td><?php echo $report_row['nas_port']?></td>
	<td><?php echo $report_row['nas_port_type']?></td>
	<td><?php echo $report_row['acct_session_id']?></td>
	<td><?php echo $report_row['acct_authentic']?></td>
	<td><?php echo $report_row['acct_input_packets']?></td>
	<td><?php echo $report_row['acct_output_packets']?></td>
	<td><?php echo $report_row['acct_input_octets']?></td>
	<td><?php echo $report_row['acct_output_octets']?></td>
	<td><?php echo $report_row['acct_terminate_cause']?></td>
</tr>
<?php 
}}
?>
</table>
